package fr.babostesting.unit.components.styles 
{
	import flash.text.StyleSheet;
	import fr.babos.core.entries.Document;
	import fr.babos.graphic.base.ResizableComponent;
	import fr.babos.graphic.styles.StyleCentral;
	
	/**
	 * @author ZoulouX
	 */
	public class StylesTest extends Document 
	{
		public function StylesTest ()
		{
			
		}
		
		override public function init ():void
		{
			/**
			 * Repasser les vues en displayObject ? -> Le ciblage des parents sera plus simple.
			 * 
			 * Passer le package "text" dans "components" Les TextBase :
			 * 
			 * - ResizableComponent < TextBase
			 * 
			 * 		textField
			 * 		
			 * 		value
			 * 		alpha
			 * 		
			 * 		text()
			 * 		append()
			 * 		html()
			 * 		border()
			 * 		
			 * - ResizableComponent < TextBase < HTMLText
			 * 
			 * 		touchFriendlyLinks
			 * 		linkTapColor
			 * 		onLinkTapped
			 * 		
			 * 		styleSheet
			 * 		
			 * - ResizableComponent < TextBase < Label
			 * 
			 * 		font
			 * 		embedFont
			 * 		antiAliasType
			 * 		size
			 * 		color
			 * 		
			 * 		autoSize
			 * 		multiline
			 * 		align
			 * 		
			 * 		borderColor
			 * 		showBorder
			 * 		
			 * 		bold
			 * 		italic
			 * 		underline
			 * 		
			 * 		leading
			 * 		indent
			 * 		letterSpacing
			 * 		leftMargin
			 * 		rightMargin
			 * 
			 * - ResizableComponent < TextBase < Label < Input
			 * 
			 * 		dispatchSoftKeyboardEvents
			 * 		password
			 * 
			 * 		placeHolderText
			 * 		placeHolderColor
			 * 		
			 * 		placeHolder()
			 * 		
			 * -> Abandonner NativeTextInput et ProgressiveText
			 * 
			 */
			var style:Object = {
				HomeViewPhone: {
					top: 5,
					left: 10,
					margin: [10, 10, 0, 10],
					title: {
						font: "Arial",
						bold: true,
						size: 15,
						color: 0xFF0000,
						embedFond: true,
						center: [0, NaN]
					},
					homeItemRender: {
						avatar: {
							top: 10,
							left: 10
						},
						title: {
							font: "Arial",
							bold: true,
							size: 15,
							color: 0xFF0000
						}
					}
				},
				HomeViewTablet: {
					top: 5,
					left: 10,
					margin: [10, 10, 0, 10],
					title: {
						font: "Arial",
						bold: true,
						size: 15,
						color: 0xFF0000,
						embedFond: true,
						center: [0, NaN]
					},
					homeItemRender: {
						avatar: {
							top: 10,
							right: 10
						},
						title: {
							font: "Arial",
							bold: true,
							size: 20,
							color: 0xFF0000
						}
					}
				}
			}
			
			var styleCentral:StyleCentral = new StyleCentral(style);
			
			/*
			// Dans HomeView :
			styleCentral.applyStyle(isTablet ? "HomeViewTablet" : "HomeViewPhone" resizableComponent);
			styleCentral.applyStyle("title", title);
			
			// Dans HomeItemRender :
			styleCentral.applyStyles({
				homeItemRender: this,
				avatar: avatar,
				title: title
			});
			*/
			/*
			styleCentral.applyStyle(isTablet ? "HomeViewTablet" : "HomeViewPhone", resizableComponent);
			styleCentral.applyStyle("title", title);
			
			styleCentral.applyStyle("homeItemRender", this);
			styleCentral.applyStyle("avatar", avatar);
			styleCentral.applyStyle("title", title);
			*/
		}
	}
}